package com.xyz.graph.service.impl;

import com.xyz.graph.schema.BuildSchema;
import com.xyz.graph.service.GManageService;
import com.xyz.graph.util.GraphUtil;
import lombok.extern.slf4j.Slf4j;
import org.janusgraph.core.ConfiguredGraphFactory;
import org.janusgraph.core.JanusGraphFactory;
import org.springframework.stereotype.Service;

import java.util.Set;

@Slf4j
@Service
public class GManageServiceImpl implements GManageService {
    @Override
    public void createGraph(String graphname) {

    }

    //test
    @Override
    public void getGSchema(String graphname) {
        JanusGraphFactory.getGraphNames();

    }

    @Override
    public void dropGraph() {
        BuildSchema buildSchema = new BuildSchema();
        buildSchema.dropSchema();

    }
}
